package cn.zhpdmmz.utils;

import cn.zhpdmmz.entity.CheckInformation;
import java.util.Calendar;
public class CreatCheckInNo extends CheckInformation {
//订单编号自动生成
        public String newCheckInNo() {

            Calendar cal=Calendar.getInstance();
            int y=cal.get(Calendar.YEAR);
            int mo=cal.get(Calendar.MONTH)+1;
            int d=cal.get(Calendar.DATE);
            int h=cal.get(Calendar.HOUR_OF_DAY);
            int mi=cal.get(Calendar.MINUTE);
            int s=cal.get(Calendar.SECOND);
            String checkInNo = "No" + "_" + y + mo + d + "_" + h + mi + s;
            return checkInNo;
        }

}
